-- GENERATED SPELL FOR [Terrorguard] --


function spell0_18661(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(11443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18661', 18000, 1)
end

function spell1_18661(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_18661', 5296, 1)
end

function Sorts_18661(pUnit, Event)
local choix_sorts_18661 = math.random(0, 1)
if choix_sorts_18661 == 0 then
pUnit:RegisterEvent('spell0_18661', 1, 1)
end
if choix_sorts_18661 == 1 then
pUnit:RegisterEvent('spell1_18661', 1, 1)
end
end

function mob18661_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18661', math.random(1500, 3000), 1)
end

function mob18661_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18661_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18661_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18661, 1, 'mob18661_Action')
RegisterUnitEvent(18661, 2, 'mob18661_Leave')
RegisterUnitEvent(18661, 3, 'mob18661_Kill')
RegisterUnitEvent(18661, 4, 'mob18661_Die')
